package o;

import android.view.LayoutInflater;
import android.view.ViewGroup;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import java.util.ArrayList;

public abstract class cie {
    protected int ʼ = 1;
    public boolean ʽ = true;
    public int ˎ = -1;
    public long ˏ;
    private ArrayList<cih> ॱ = new ArrayList();

    public abstract ViewGroup ˊ(LayoutInflater layoutInflater, ViewGroup viewGroup);

    public abstract boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2);

    public void ˊ(cih o_cih) {
        if (o_cih != null) {
            this.ॱ.add(o_cih);
        }
    }

    public cih ˎ(int i) {
        if (this.ॱ == null || i < 0 || i >= this.ॱ.size()) {
            return null;
        }
        return (cih) this.ॱ.get(i);
    }

    public int ˊॱ() {
        return this.ॱ.size();
    }

    public int ˏ() {
        return this.ʼ;
    }

    public int ͺ() {
        return this.ˎ;
    }

    public void ॱˊ() {
    }

    public void ॱˎ() {
    }

    public boolean ॱ(chz o_chz, ViewGroup viewGroup) {
        int ˏ = ˏ();
        this.ˏ = o_chz.ˏ;
        for (int i = 0; i < ˏ; i++) {
            cih ˎ = ˎ(i);
            if (ˎ != null) {
                CardBean ˋ = o_chz.ˋ(i);
                if (ˋ != null) {
                    ˋ.ʼ(this.ʽ);
                    ˋ.ˋˋ(String.valueOf(this.ˏ));
                    ˋ.ˏˏ(o_chz.ͺ());
                    ˋ.ᐝ(o_chz.ˊ());
                    ˎ.ˎ(ˋ, viewGroup);
                    ˎ.ॱ(o_chz);
                    ˎ.ˉ().setVisibility(0);
                } else {
                    ˎ.ˉ().setVisibility(4);
                }
            }
        }
        return true;
    }

    public void ˋ(chy o_chy) {
        for (int i = 0; i < ˊॱ(); i++) {
            cih ˎ = ˎ(i);
            if (ˎ != null) {
                ˎ.ॱ(o_chy);
            }
        }
    }

    public void ˊ(cig o_cig) {
        for (int i = 0; i < ˊॱ(); i++) {
            cih ˎ = ˎ(i);
            if (ˎ != null) {
                ˎ.ˏ(o_cig);
            }
        }
    }

    public void ˏ(int i) {
        for (int i2 = 0; i2 < ˊॱ(); i2++) {
            cih ˎ = ˎ(i2);
            if (ˎ != null) {
                ˎ.ᐝ(i);
            }
        }
    }

    public String toString() {
        return getClass().getName() + " {\n\tmCards: " + this.ॱ + "\n\tcardNumberPreLine: " + this.ʼ + "\n\tcardType: " + this.ˎ + "\n}";
    }
}
